#include <iostream>
using namespace std;

class Person
{
public:
    Person() : Person(0){}
    Person(int age) : m_age(age){}


public:
    int getAge()    
    {
        return m_age;
    }

private:
    int m_age;
};

class Student:public Person
{
public:
    Student(int age,int score):Person(age),m_score(score){}

    void show()
    {
        cout<<"age:"<<getAge()<<",score:"<<m_score<<endl;
    }

private:
    int m_score;

};

int main()
{
    Student s1(20,87);
    s1.show();

    return 0;
}